package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.SsMstXcxStudentHomework;
import com.dingreading.cloud.soms.entity.table.SsMstXcxStudentHomeworkTableDef;
import com.dingreading.cloud.soms.mapper.SsMstXcxStudentHomeworkMapper;
import com.dingreading.cloud.soms.service.SsMstXcxStudentHomeworkService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 小程序学生课后作业表 服务层实现。
 *
 * @author EDY
 * @since 2025-11-03
 */
@Service
public class SsMstSsMstXcxStudentHomeworkServiceImpl extends BaseServiceImpl<SsMstXcxStudentHomeworkMapper, SsMstXcxStudentHomework, SsMstXcxStudentHomeworkTableDef> implements SsMstXcxStudentHomeworkService {

    @Override
    protected SsMstXcxStudentHomeworkTableDef getTable() {
        return SsMstXcxStudentHomeworkTableDef.ssMstXcxStudentHomework;
    }

    @Override
    public List<SsMstXcxStudentHomework> getByMstStoreUid(String mstStoreUid) {
        return getMapper().selectListByCondition(table.storeUid.eq(mstStoreUid));
    }
}
